const { pathsToModuleNameMapper } = require('ts-jest');
const { paths } = require('./tsconfig.json').compilerOptions;

module.exports = {
  collectCoverageFrom: [
    '<rootDir>/projects/components/**/*.{js,jsx,ts,tsx}',
    '!<rootDir>/projects/components/**/*.module.ts',
  ],
  testMatch: ['<rootDir>/projects/components/**/*.spec.{js,jsx,ts,tsx}'],
  moduleNameMapper: pathsToModuleNameMapper(paths, { prefix: '<rootDir>' }),
};
